import Vue from 'vue';
import Router from 'vue-router';
import UserLogin from './components/UserLogin.vue';
import UserRegister from './components/UserRegister.vue';
import Index from './components/index.vue';
import PlayerRoom from './components/PlayerRoom.vue';
import Admin  from './components/admin.vue';
import FriendsList from './components/FriendsList.vue';

Vue.use(Router);

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'user-login',
      component: UserLogin
    },
    {
      path: '/register',
      name: 'user-register',
      component: UserRegister
    },
    {
      path: '/index',
      name: 'user-index',
      component: Index
    },
    {
      path: '/player-room',
      name: 'user-room',
      component: PlayerRoom
    },
    {
      path: '/admin',
      name: 'admin',
      component: Admin
    },
    {
      path: '/friends',
      name: 'friends',
      component: FriendsList
    }
  ]
});
